<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue.extend</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>vue.extend</h1>
    <hr>
    <div id="author"></div>
    <author></author>

    <script type="text/javascript">
      var authorExtend = Vue.extend({
          template:"<p><a :href='authorURL'>{{authorName}}</a></p>",
          data:function(){
            return{
                authorName: 'JSPang',
                authorURL:"http://jspang.com"
            }
          }
      });

      new authorExtend().$mount("#author");
      new authorExtend().$mount("author");
    </script>
</body>
</html>